/* 
 * File:   integral.h
 * Author: gustavo
 *
 * Created on November 13, 2011, 5:09 AM
 */

#ifndef INTEGRAL_H
#define	INTEGRAL_H

#ifdef	__cplusplus
extern "C" {
#endif

#include <util/types.h>
#include "../../imp_types.h"
#include "../../matrix/matrix.h"

	void imp_image_integral(ImpMatrix * Img, ImpMatrix ** IntImg);
	void imp_image_integral2(ImpMatrix * Img, ImpMatrix ** IntImg, ImpMatrix ** SqIntImg);
	real imp_image_integral_get_area(ImpMatrix * Integral, Ref2 p1, Ref2 p2);
	real imp_image_integral_get_area_from_rect(ImpMatrix * Integral, Rect rect);

#ifdef	__cplusplus
}
#endif

#endif	/* INTEGRAL_H */

